﻿using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using Google.Protobuf;
using Google.Protobuf.Collections;
using Google.Protobuf.Reflection;

namespace EggLink.DanhengServer.Proto
{
	// Token: 0x02000095 RID: 149
	[DebuggerDisplay("{ToString(),nq}")]
	public sealed class AlleyPlacingShip : IMessage<AlleyPlacingShip>, IMessage, IEquatable<AlleyPlacingShip>, IDeepCloneable<AlleyPlacingShip>, IBufferMessage
	{
		// Token: 0x170001D5 RID: 469
		// (get) Token: 0x06000683 RID: 1667 RVA: 0x00012F69 File Offset: 0x00011169
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageParser<AlleyPlacingShip> Parser
		{
			get
			{
				return AlleyPlacingShip._parser;
			}
		}

		// Token: 0x170001D6 RID: 470
		// (get) Token: 0x06000684 RID: 1668 RVA: 0x00012F70 File Offset: 0x00011170
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageDescriptor Descriptor
		{
			get
			{
				return AlleyPlacingShipReflection.Descriptor.MessageTypes[0];
			}
		}

		// Token: 0x170001D7 RID: 471
		// (get) Token: 0x06000685 RID: 1669 RVA: 0x00012F82 File Offset: 0x00011182
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		MessageDescriptor IMessage.Descriptor
		{
			get
			{
				return AlleyPlacingShip.Descriptor;
			}
		}

		// Token: 0x06000686 RID: 1670 RVA: 0x00012F89 File Offset: 0x00011189
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public AlleyPlacingShip()
		{
		}

		// Token: 0x06000687 RID: 1671 RVA: 0x00012F9C File Offset: 0x0001119C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public AlleyPlacingShip(AlleyPlacingShip other) : this()
		{
			this.shipId_ = other.shipId_;
			this.goodsList_ = other.goodsList_.Clone();
			this._unknownFields = UnknownFieldSet.Clone(other._unknownFields);
		}

		// Token: 0x06000688 RID: 1672 RVA: 0x00012FD2 File Offset: 0x000111D2
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public AlleyPlacingShip Clone()
		{
			return new AlleyPlacingShip(this);
		}

		// Token: 0x170001D8 RID: 472
		// (get) Token: 0x06000689 RID: 1673 RVA: 0x00012FDA File Offset: 0x000111DA
		// (set) Token: 0x0600068A RID: 1674 RVA: 0x00012FE2 File Offset: 0x000111E2
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint ShipId
		{
			get
			{
				return this.shipId_;
			}
			set
			{
				this.shipId_ = value;
			}
		}

		// Token: 0x170001D9 RID: 473
		// (get) Token: 0x0600068B RID: 1675 RVA: 0x00012FEB File Offset: 0x000111EB
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public RepeatedField<JPMPLLFBBFP> GoodsList
		{
			get
			{
				return this.goodsList_;
			}
		}

		// Token: 0x0600068C RID: 1676 RVA: 0x00012FF3 File Offset: 0x000111F3
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override bool Equals(object other)
		{
			return this.Equals(other as AlleyPlacingShip);
		}

		// Token: 0x0600068D RID: 1677 RVA: 0x00013004 File Offset: 0x00011204
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool Equals(AlleyPlacingShip other)
		{
			return other != null && (other == this || (this.ShipId == other.ShipId && this.goodsList_.Equals(other.goodsList_) && object.Equals(this._unknownFields, other._unknownFields)));
		}

		// Token: 0x0600068E RID: 1678 RVA: 0x00013054 File Offset: 0x00011254
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override int GetHashCode()
		{
			int num = 1;
			if (this.ShipId != 0U)
			{
				num ^= this.ShipId.GetHashCode();
			}
			num ^= this.goodsList_.GetHashCode();
			if (this._unknownFields != null)
			{
				num ^= this._unknownFields.GetHashCode();
			}
			return num;
		}

		// Token: 0x0600068F RID: 1679 RVA: 0x000130A1 File Offset: 0x000112A1
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override string ToString()
		{
			return JsonFormatter.ToDiagnosticString(this);
		}

		// Token: 0x06000690 RID: 1680 RVA: 0x000130A9 File Offset: 0x000112A9
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void WriteTo(CodedOutputStream output)
		{
			output.WriteRawMessage(this);
		}

		// Token: 0x06000691 RID: 1681 RVA: 0x000130B4 File Offset: 0x000112B4
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalWriteTo(ref WriteContext output)
		{
			this.goodsList_.WriteTo(ref output, AlleyPlacingShip._repeated_goodsList_codec);
			if (this.ShipId != 0U)
			{
				output.WriteRawTag(120);
				output.WriteUInt32(this.ShipId);
			}
			if (this._unknownFields != null)
			{
				this._unknownFields.WriteTo(ref output);
			}
		}

		// Token: 0x06000692 RID: 1682 RVA: 0x00013104 File Offset: 0x00011304
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public int CalculateSize()
		{
			int num = 0;
			if (this.ShipId != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.ShipId);
			}
			num += this.goodsList_.CalculateSize(AlleyPlacingShip._repeated_goodsList_codec);
			if (this._unknownFields != null)
			{
				num += this._unknownFields.CalculateSize();
			}
			return num;
		}

		// Token: 0x06000693 RID: 1683 RVA: 0x00013158 File Offset: 0x00011358
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(AlleyPlacingShip other)
		{
			if (other == null)
			{
				return;
			}
			if (other.ShipId != 0U)
			{
				this.ShipId = other.ShipId;
			}
			this.goodsList_.Add(other.goodsList_);
			this._unknownFields = UnknownFieldSet.MergeFrom(this._unknownFields, other._unknownFields);
		}

		// Token: 0x06000694 RID: 1684 RVA: 0x000131A5 File Offset: 0x000113A5
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(CodedInputStream input)
		{
			input.ReadRawMessage(this);
		}

		// Token: 0x06000695 RID: 1685 RVA: 0x000131B0 File Offset: 0x000113B0
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalMergeFrom(ref ParseContext input)
		{
			uint num;
			while ((num = input.ReadTag()) != 0U)
			{
				if (num != 50U)
				{
					if (num != 120U)
					{
						this._unknownFields = UnknownFieldSet.MergeFieldFrom(this._unknownFields, ref input);
					}
					else
					{
						this.ShipId = input.ReadUInt32();
					}
				}
				else
				{
					this.goodsList_.AddEntriesFrom(ref input, AlleyPlacingShip._repeated_goodsList_codec);
				}
			}
		}

		// Token: 0x04000261 RID: 609
		private static readonly MessageParser<AlleyPlacingShip> _parser = new MessageParser<AlleyPlacingShip>(() => new AlleyPlacingShip());

		// Token: 0x04000262 RID: 610
		private UnknownFieldSet _unknownFields;

		// Token: 0x04000263 RID: 611
		public const int ShipIdFieldNumber = 15;

		// Token: 0x04000264 RID: 612
		private uint shipId_;

		// Token: 0x04000265 RID: 613
		public const int GoodsListFieldNumber = 6;

		// Token: 0x04000266 RID: 614
		private static readonly FieldCodec<JPMPLLFBBFP> _repeated_goodsList_codec = FieldCodec.ForMessage<JPMPLLFBBFP>(50U, JPMPLLFBBFP.Parser);

		// Token: 0x04000267 RID: 615
		private readonly RepeatedField<JPMPLLFBBFP> goodsList_ = new RepeatedField<JPMPLLFBBFP>();
	}
}
